$(function () {
	vm.getList();
});

var vm = new Vue({
	el:'#mapp',
	data:{
		title: "快报",
		bsnKbList: {},
		pageParams:{
			limit: "500",
			page: "1"
		}
	},
	methods: {
		getList: function(){
			$.ajax({
				type: "POST",
			    url: ajaxServerUrlG("bsnKb/list"),
                contentType: "application/json",
			    data: JSON.stringify(vm.pageParams),
			    success: function(r){
			    	if(r.code === 0){
						vm.pageParams.totalCount = r.page.totalCount;
						vm.pageParams.pageSize = r.page.pageSize;
						vm.pageParams.totalPage = r.page.totalPage;
						vm.pageParams.page = r.page.currPage;
						vm.bsnKbList = r.page.list;
					}else{
						alert(r.msg);
					}
				}
			});
		},
		gotoEdit: function(id){
			location.href = "msEditKb.html?id=" + id + "&title=快报"; 
		}
	}
});